<?php
class Test_models{

    private $app = false;

    public function __construct(&$app){
        $this->app = $app;
    }

    public function GetAll(){
	//$cache = unserialize($this->app->redis->get("test"));
	//if ( $cache ){
	  //  return $cache;
	//}else{
	   // $sql = "select * from trjh_users limit 10";
	  $list = $this->app->db->query('show tables');

	    //$this->app->redis->set("test",serialize($list));
	    return $list;
	//}
    }


}
